import '@/css/index.css';
import React from 'react';
import { Carousel } from 'antd';

class Swifter extends React.Component {
  clickHandle() {
    alert(1);
  }

  render() {
    return (
      <Carousel
        vertical
        autoplay={true}
        onClick={() => {
          clickHandle();
        }}
      >
        <a href="http://sakumyz.github.io">
          <div id="item1">.</div>
        </a>
        <a href="#">
          <div id="item2">.</div>
        </a>
        <a href="#">
          <div id="item3">.</div>
        </a>
        <a href="#">
          <div id="item4">.</div>
        </a>
      </Carousel>
    );
  }
}

export default Swifter;
